home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Environments / Prograph Classic 2.6.1 / Prograph Reference Manual / Prograph Reference 5-7 / Prograph Reference 5-7.rsrc / TEXT_150.txt < prev    next >
Encoding:
Text File  |  1995-10-25  |  5.4 KB  |  175 lines

  1. ¬†         Window  
  2.  
  3. Inherits from:     System 
  4.  
  5.  
  6. _____________________________________________________
  7. ¬†           name *238*
  8.  
  9. Type:   string 
  10.  
  11. Description:   Appears as the title in the banner of the ¬´Window¬ª when it is active, and is used by the primitives find-window and find-window-a for finding a ¬´Window¬ª by name.    
  12.  
  13.  
  14.  
  15. _____________________________________________________
  16. ¬†           owner  *238*
  17.  
  18. Type:   Application     
  19.  
  20. Constraints:    Not settable.      
  21.  
  22. Description: If ¬´Window¬ª and some ¬´Application¬ª are both active, then the value of owner is the active ¬´Application¬ª. Otherwise NULL.    
  23.  
  24.  
  25.  
  26. _____________________________________________________
  27. ¬†           active?  *238*
  28.  
  29. Type:   boolean    
  30.  
  31. Constraints:    Not settable on default or if there is no active ¬´Application¬ª.    
  32.  
  33. Description:      TRUE if and only if there is an active ¬´Application¬ª and ¬´Window¬ª is one of its active windows.    
  34.  
  35. Side effects:    When this attribute is set to TRUE, ¬´Window¬ª is opened and added to the left end of the window list in attribute windows of the active ¬´Application¬ª. When set to FALSE, ¬´Window¬ª is closed and removed from this list.
  36.  
  37. Neither are prescribed for opening or closing windows.  For more information see the activate method and close method System instance attributes.    
  38.  
  39.  
  40.  
  41. _____________________________________________________
  42. ¬†          window record *239*
  43.  
  44. Type:   WindowRecord@    
  45.  
  46. Constraints:    Not settable.    
  47.  
  48. Description:    The window record for the ¬´Window¬ª.    
  49.  
  50.  
  51.  
  52. _____________________________________________________
  53. ¬†            def ID  *239*
  54.  
  55. Type:   integer 
  56.  
  57. Constraints:    Not settable when ¬´Window¬ª is active.    
  58.  
  59. Description: The number of the Macintosh procedure used to draw the window structure. See Mac Constants in the ÀôInfo‚Ķ dialog for values.    
  60.  
  61.  
  62.  
  63. _____________________________________________________
  64. ¬†            modal?  *239*
  65.  
  66. Type:   boolean    
  67.  
  68. Description: If TRUE, the system beeps whenever the user attempts to click outside the ¬´Window¬ª.      
  69.  
  70.  
  71.  
  72. _____________________________________________________
  73. ¬†            close?  *239*
  74.  
  75. Type:   boolean 
  76.  
  77. Constraints:    Not settable when ¬´Window¬ª is active. Must be FALSE if the value of defID indicates that ¬´Window¬ª is not a document window.    
  78.  
  79. Description: The ¬´Window¬ª has a close box only if the value of this attribute is TRUE.    
  80.  
  81.  
  82.  
  83. _____________________________________________________
  84. ¬†            selected item *240*
  85.  
  86. Type:   null | Edit Text | Scroll Text | Scroll List 
  87.  
  88. Constraints:    Not settable to an ¬´Edit Text¬ª, ¬´Scroll Text¬ª , or ¬´Scroll List¬ª that is not active or visible, or that does not have ¬´Window¬ª as owner.    
  89.  
  90. Description: ¬´Edit Text¬ª, ¬´Scroll Text¬ª, or ¬´Scroll List¬ª currently being edited in ¬´Window¬ª, or NULL if there is no active text editor in ¬´Window¬ª. When ¬´Window¬ª is activated, the value of selected item is the leftmost ¬´Edit Text¬ª in the list of ¬´Window Items¬ª in the attribute item list.    
  91.  
  92. Side effects:   Setting causes the previously selected ¬´Edit Text¬ª or ¬´Scroll Text¬ª to be deselected. Setting to NULL causes all text items to be deselected.    
  93.  
  94.  
  95.  
  96. _____________________________________________________
  97. ¬†            location  *240*
  98.  
  99. Type:   Point    
  100.  
  101. Description:    The location of the upper left corner of ¬´Window¬ª .    
  102.  
  103. Side effects:    Setting causes ¬´Window¬ª to be redrawn.    
  104.  
  105.  
  106.  
  107. _____________________________________________________
  108. ¬†            size  *240*
  109.  
  110. Type:   Point    
  111.  
  112. Description:    Offset of the lower right corner of ¬´Window¬ª from the upper left corner.    
  113.  
  114. Side effects:    Setting causes ¬´Window¬ª to be redrawn.    
  115.  
  116.  
  117.  
  118. _____________________________________________________
  119. ¬†            activate method  *241*
  120.  
  121. Type:   string 
  122.  
  123. Description: The name of the method called when ¬´Window¬ª is activated (brought to the front) or deactivated.
  124.  
  125. The prescribed method for opening a window is to call /Open.  The supplied /Open method also calls /Open of window items in case window items require such a message.     
  126. Method inputs: ¬´Window¬ª, <boolean: new value of active?>, <activate EventRecord> 
  127.  
  128.  
  129.  
  130. _____________________________________________________
  131. ¬†            close method   *241*
  132.  
  133. Type:   string 
  134.  
  135. Description: The name of the method called when the close box in ¬´Window¬ª is clicked.  Calling /Close is the prescribed method.    
  136.  
  137. Method inputs:    ¬´Window¬ª, <EventRecord of click> 
  138.  
  139.  
  140.  
  141. _____________________________________________________
  142. ¬†            idle method   *241*
  143.  
  144. Type:   string 
  145.  
  146. Description: The name of the method called when ¬´Window¬ª is the top window, the Application Manager is running, and there are no events pending (that is, the last event is a null event).    
  147.  
  148. Method inputs:    ¬´Window¬ª, <Point: position of cursor>, <EventRecord of null event>
  149.     
  150.  
  151.  
  152. _____________________________________________________
  153. ¬†            key method   *242*
  154.  
  155. Type:   string 
  156.  
  157. Description: The name of the method called when ¬´Window¬ª is the top window and has no selected ¬´Edit Text¬ª or ¬´Scroll Text¬ª, the Application Manager is running, and a key (other than a modifier) is depressed.    
  158.  
  159. Method inputs:    ¬´Window¬ª, <integer: ASCII code for key>, <EventRecord of keypress> 
  160.  
  161.  
  162.  
  163. _____________________________________________________
  164. ¬†            item list *242*
  165.  
  166. Type:   list of Window Item 
  167.  
  168. Constraints:    Not settable when ¬´Window¬ª is active.    
  169.  
  170. Description: The list of ¬´Window Item¬ªs found in the ¬´Window¬ª.  The primitive find-item searches item list to find a ¬´Window Item¬ª by name or by index.    
  171.  
  172. Warning:    Results are unpredictable if any ¬´Window Item¬ª is repeated in item list, or occurs in the item list of more than one active ¬´Window¬ª.      
  173.  
  174.  
  175.